/**
 * 
 */
package huristic;
/**
*@author tonychao 
*功能 Estimator 的基类,负责组织计算资源的调度
*/

import java.util.ArrayList;

import others.Global;

/**
 * @author asus
 *
 */
public class Estimator {
	public static final ArrayList<Integer> cores=Global.CORES;
	public static final ArrayList<Integer> memorys=Global.MEMORYS_IN_MB;
	public int availableCores,avaliableMemory, avaliableExecutors, avalibaleParallelism;
	public int executor_cores,executor_memory, cores_per_task;
	
		//初始化时对estimater 进行赋值
	public Estimator(int executor_cores,int executor_memory,int cores_per_task){		
		if (this.cores.size()!=this.memorys.size()) System.err.println("非法的系统配置：内存列表和核心数列表长度不等");
		conf( executor_cores, executor_memory, cores_per_task);
	}
	
	//对estimator 拿到的数据进行估算
	public void conf(int executor_cores,int executor_memory,int cores_per_task){
		System.err.println("空函数");
	}
	
}


